//
//  CSUserDefaultsTool.m
//  CarSalesMS_GCX
//
//  Created by Tony on 2016/11/15.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import "CSUserDefaultsTool.h"


@interface CSUserDefaultsTool ()

@property (nonatomic, strong) NSUserDefaults * df;

@end


@implementation CSUserDefaultsTool

+ (void)setUserNo:(NSString *)userNO {
    [[NSUserDefaults standardUserDefaults] setObject:userNO forKey:@"userNO"];
}

+ (void)setUserName:(NSString *)userName {
    [[NSUserDefaults standardUserDefaults] setObject:userName forKey:@"userName"];
}

+ (void)setBusinessmanNo:(NSString *)businessmanNo {
    [[NSUserDefaults standardUserDefaults] setObject:businessmanNo forKey:@"businessmanNo"];
}

+ (void)setBusinessman:(NSString *)businessman {
    [[NSUserDefaults standardUserDefaults] setObject:businessman forKey:@"businessman"];
}

+ (void)setWarehouseNo:(NSString *)warehouseNo {
    [[NSUserDefaults standardUserDefaults] setObject:warehouseNo forKey:@"warehouseNo"];
}

+ (void)setWarehouse:(NSString *)warehouse {
    [[NSUserDefaults standardUserDefaults] setObject:warehouse forKey:@"warehouse"];
}

+ (void)setOrderNo:(NSString *)orderNo {
    [[NSUserDefaults standardUserDefaults] setObject:orderNo forKey:@"orderNo"];
}



+ (NSString *)getUserNo {
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"userNO"];
}

+ (NSString *)getUserName {
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"userName"];
}

+ (NSString *)getBusinessmanNo {
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"businessmanNo"];
}

+ (NSString *)getBusinessman {
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"businessman"];
}

+ (NSString *)getWarehouseNo {
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"warehouseNo"];
}

+ (NSString *)getWarehouse {
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"warehouse"];
}

+ (NSString *)getOrderNo {
    NSString *orderNo = [[NSUserDefaults standardUserDefaults] objectForKey:@"orderNo"];
    if (orderNo == nil || [orderNo isEmpty]) {
        
        NSLog(@"---userdefualtsTool----getOrderNo-------orderNo为空！");
    }
    return orderNo;
}










@end
